#!/bin/bash

# The displayer will recieve command from pipe
# And put GUI output to GNOME/KDE enviroment
# Suggest xdotool installed

inpp="/tmp/lzx_displayer.pipe"

[ ! -f "$inpp" ] && mkfifo --mode=0666 "$inpp"

while [ 1 ]
do
  read line <$inpp
  $line 
done

rm "$inpp"

